package com.wt.springsamples.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
//@AllArgsConstructor
@TableName("tb_sys_log")
public class SysLog implements IEntity{
    @TableId(type = IdType.ASSIGN_ID)
    protected Long id;
    protected Integer platformId;
    protected Integer linkId;
    protected Integer deviceId;
    protected Integer type;
    protected Integer level;
    protected String info;

//    @TableField(fill = FieldFill.INSERT)
    //配合MetaObjectHandler接口使用用，为字段设置默认值
    private Date createTime;

//    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

//    @Version
//    @TableField(fill = FieldFill.INSERT)
//    private  Integer version;
}
